<?php

 abstract class Controller_Base {
//	protected $registry;
	
	protected $alias;
	protected $id;
	
	protected $menu;
	protected $logger;
	protected $session;
	
	protected $config;
	
	function __construct() {
	
//		$this->registry = new Registry();
	
		$this->menu 	= new Model_Menu();
		$this->logger 	= new Model_Logger();
		$this->logger->log($_SERVER[REMOTE_ADDR],$_SERVER[HTTP_USER_AGENT],$_SERVER[QUERY_STRING],'');
	}
	
	abstract function index($args);

	function setAlias($alias) {
		$this->alias = $alias;
		$this->setId($this->menu->getIdByAlias($alias));
	}
	
	private function setId($id) {
		$this->id = $id;
	}
 }
?>
